package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 设备非自动提醒 实体
 * </p>
 *
 * @author 黄露
 * @since 2021-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// "DeviceMachineRemind对象", description = "设备非自动提醒")
public class DeviceMachineRemind extends Model<DeviceMachineRemind> {

  private static final long serialVersionUID = 1L;

  // "提醒id")
  @TableId(value = "remind_id", type = IdType.AUTO)
  private Integer remindId;

  // "设备名称")
  private String deviceName;

  // "路由组")
  private String routeGroup;

  // "路由")
  private String route;

  // "工作模式")
  private String workMode;

  // "开始时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime startTime;

  // "持续时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime lastTime;

  // "提醒时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime remindTime;

  // "提示间隔")
  private Integer remindInterval;

  // "是否已屏蔽，1=是，0是否")
  private Boolean mask;

  // "结束时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime endTime;

  // "创建时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime createTime;

  @Override
  public Serializable pkVal() {
    return this.remindId;
  }

}
